<template>
  <div>
    <p>{{ count }}</p>
    <button @click="increase">+</button>
    <button @click="decrease">-</button>
  </div>
</template>
<script>
export default {
    data:()=>({count:0}),
    methods:{
        increase(){
            this.count++;
        },
        decrease(){
            this.count--;
        }
    }
}
</script>
<style>
p{
    color:red;
}
</style>